/*
 ============================================================================
 Name		: NiStatusBar.h
 Author	  : nmj
 Version	 : 1.0
 Copyright   : Copyright ? 2010 - 2010 NMJ. All Rights Reserved.
 Description : CNiStatusBar declaration
 ============================================================================
 */

#ifndef NISTATUSBAR_H
#define NISTATUSBAR_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>

// CLASS DECLARATION

/**
 *  CNiStatusBar
 * 
 */
class CNiStatusBar : public CCoeControl
	{
public:
	// Constructors and destructor

	/**
	 * Destructor.
	 */
	~CNiStatusBar();

	/**
	 * Two-phased constructor.
	 */
	static CNiStatusBar* NewL();

	/**
	 * Two-phased constructor.
	 */
	static CNiStatusBar* NewLC();

private:

	/**
	 * Constructor for performing 1st stage construction
	 */
	CNiStatusBar();

	/**
	 * EPOC default constructor for performing 2nd stage construction
	 */
	void ConstructL();
	
	void SetLeftText(TDesC& aText);
	
	void SetMiddleText(TDesC& aText);
	
	void SetRightText(TDesC& aText);
	
private:
	
	TRect iStatusBarRect;
	
	TDesC& iLeftText;
	
	TDesC& iMiddleText;
	
	TDesC& iRightText;
	
	CFont* iFont;  
	
	TRgb iBgColor;
	
	};

#endif // NISTATUSBAR_H
